package com.itheima.zuoye2.zuoye3;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@Data
@NoArgsConstructor


public abstract  class Card {
    private String namuber;
    private String name;
    private String telephone;
    private double balance ;


    public String getNamuber() {
        return namuber;
    }

    public void setNamuber(String namuber) {
        this.namuber = namuber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }


    public abstract void pay(double amount);
}

